package com.e.dianshang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description: TOOD
 * @ClassName: Brand
 * @Author: ${陈柯宇}
 * Date: 2020/11/9 16:51
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_brand")
public class Brand implements Serializable {

    @Id
    @Column(name = "brand_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    //品牌名称
    @Column(name = "brand_name")
    private String name;

    //品牌启用状态
    @Column(name = "brand_state")
    private Boolean state;

    //品牌图片地址
    @Column(name = "brand_uri")
    private String uri;
}
